package com.czp.mall.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.Contract;
import feign.Logger;

@Configuration
public class ItemFeignClientConfiguration {

	@Bean
	public Contract feignContract() {
		System.out.println("加载feign自定义配置...");
		return new feign.Contract.Default(); // 使用feign默认的配置，而不是使用springmvc的
	}
	
	@Bean
	public Logger.Level feignLogLevel(){
		System.out.println("加载ItemFeignClientConfiguration的日志记录...");
		return Logger.Level.FULL;
	}
	
}
